# you can declare functions directly in the PSM1 file
function Write-M()
{
	Write-Host "M"
}

# region Import scripts
# $PSScriptRoot is a shortcut to "the current folder where the script is being"
# run from". Also note the use of . sourcing

Write-Host $PSScriptRoot
. $PSScriptRoot\Function-A.ps1
. $PSScriptRoot\Function-B.ps1

#endregion Import Scripts

# If you don't explicilty export module members, all functions will be visible
# outside the module

# With Export-ModuleMember, only those functions listed will be visible. Any
# not included will be private to the function.

# It is considered a best practice to explictly export the functions you want visible

Export-ModuleMember Write-A
Export-ModuleMember Write-B
Export-ModuleMember Write-M

# Note, because we don't export Write-APrivate
# (from Function-A.ps1)
# it won't be usable outside the module

